package com.isoft.c2team3service2.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("hot_news")
public class HotNews {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(insertStrategy = FieldStrategy.NOT_EMPTY)
    private String title;

    @TableField(insertStrategy = FieldStrategy.NOT_EMPTY)
    private String content;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

    // 新增背景图片字段
    private String backgroundImg;
}